package io.renren.modules.edu.controller;

import io.renren.common.utils.Result;
import io.renren.modules.edu.service.TEduDepartmentService;
import io.renren.modules.edu.vo.ElSelectOptionsVO;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;

/**
 * 部门信息表
 *
 * @author zwp zwp
 * @since 1.0.0 2022-07-11
 */
@RestController
@RequestMapping("edu/tedudepartment")
@Api(tags="部门信息表")
public class TEduDepartmentController {

    @Autowired
    private TEduDepartmentService tEduDepartmentService;

    /**
     * 获取部门列表
     * @param params
     * @return
     */
    @GetMapping("queryEdudepartment")
    public Result<List<ElSelectOptionsVO>> queryEdudepartment(@RequestParam Map<String, Object> params) {
        List<ElSelectOptionsVO> elSelectOptionsVOList = tEduDepartmentService.queryEdudepartment(params);
        return new Result<List<ElSelectOptionsVO>>().ok(elSelectOptionsVOList);
    }
}
